@layout("/common/_container_org.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>学生用户管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <input type="hidden" id="orgId" value="${orgId}">
                        <div class="row">
                            <div class="col-lg-2 col-sm-3">
                                <div class="panel panel-default">
                                    <div class="panel-heading">组织机构</div>
                                    <div class="panel-body dept-tree">
                                        <ul id="areaTree" class="ztree"></ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-10 col-sm-9" style="overflow: scroll">
                                <div class="row">
                                    <div class="col-lg-10 col-sm-9">
                                        <div class="row">
                                            <div class="col-lg-3 col-sm-8">
                                                <#NameCon id="userName" name="姓名" />
                                            </div>
                                            <div class="col-lg-3 col-sm-8">
                                                <#NameCon id="account" name="账号" />
                                            </div>
                                            <div class="col-lg-3 col-sm-8">
                                            <#NameCon id="schoolCard" name="校卡号" />
                                        </div>
                                            <div class="col-lg-3 col-sm-8">
                                        <#SelectCon id="sysRoleId" name="角色类型" underline="true">
                                        <option value="">所有角色</option>
                                        @for(sysRole in sysRoles){
                                        <option value="${sysRole.id}">${sysRole.cname}</option>
                                        @}
                                    </#SelectCon>
                                    </div>
                                        <div class="col-lg-3 col-sm-8">
                                            <#SelectCon id="roleId" name="职务类型" underline="true">
                                            <option value="">所有职务</option>
                                            @for(role in roles){
                                            <option value="${role.id}">${role.roleName}</option>
                                            @}
                                        </#SelectCon>
                                    </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-sm-3">
                                        <div class="row">
                                            <div class="col-lg-12 col-sm-12">
                                                <#button name="搜索" icon="fa-search" clickFun="PtTeacher.search()"/>
                                                <#button name="重置" icon="fa-repeat" clickFun="PtTeacher.resetSearch()"
                                                space="true"/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="hidden-xs" id="PtStudentTableToolbar" role="group">
                                    @if(shiro.hasPermission("/ptTeacher/add")){
                                    <#button name="添加" icon="fa-plus" clickFun="PtTeacher.openAddPtTeacher()"/>
                                    @}
                                    @if(shiro.hasPermission("/ptTeacher/import")){
                                    <#button name="导入" icon="fa-cloud-download" clickFun="PtTeacher.import()"
                                    space="true"/>
                                    @}
                                    @if(shiro.hasPermission("/ptTeacher/export")){
                                    <#button name="导出" icon="fa-cloud-upload" clickFun="PtTeacher.export()"  space="true"/>

                                    @}
                                    @if(shiro.hasPermission("/ptTeacher/batchDelete")){
                                    <#button name="批量删除" icon="fa-remove" clickFun="PtTeacher.batchDelete()"  space="true"/>

                                    @}
                                    @if(shiro.hasPermission("/ptTeacher/updateEnable")){
                                    <#button name="批量冻结" icon="fa-lock" clickFun="PtTeacher.updateEnable(0)"  space="true"/>

                                    @}
                                    @if(shiro.hasPermission("/ptTeacher/updateEnable")){
                                    <#button name="批量启动" icon="fa-unlock" clickFun="PtTeacher.updateEnable(1)"  space="true"/>

                                    @}
                                    @if(shiro.hasPermission("/postmanage/toPostManage")){
                                    <#button name="职务管理" icon="fa-user-plus" clickFun="PtTeacher.addOrEditPostManage()"  space="true"/>
                                    @}
                                </div>
                                <#table id="PtTeacherTable"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/ptTeacher/ptTeacher.js"></script>
@}
